<?php
/*
 * @Author: zls 3292844045@qq.com
 * @Date: 2022-05-23 09:52:11
 * @LastEditors: zls 3292844045@qq.com
 * @LastEditTime: 2022-05-23 09:56:30
 * @FilePath: \CUCCL\php\connect.php
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * 
 */
    $host = 'localhost:3306';
    $user = 'root';
    $pwd = 'root';
    $dbname = 'gucci';

    $conn = mysqli_connect($host, $user, $pwd, $dbname);

    if(!$conn){
        echo('数据库连接错误');
    }

?>